<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function test() {
				console.log(this);
				console.log("test");
			}

			// test();

			var a = "张三";
			
			var obj = {
				name: "李四"
			}

			test.call(obj);//改变函数的this指向

			

			// console.log(window.a);
			// window.test();
		</script>
	</body>
</html>
